package net.lainiao.morethread.Chapter2.demo3;

/**
 * Created by Administrator on 2017/2/28.
 */
public class Producer implements Runnable {
    private EventStore store;

    public Producer(EventStore store) {
        this.store = store;
    }

    @Override
    public void run() {
        for (int i = 0; i <100 ; i++) {
            store.set();
        }
    }
}
